File tree 2 files changed +3
-3
lines changed
test/scala/scala/async/neg
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ package scala.async
6
6
7
7
import scala .language .experimental .macros
8
8
import scala .reflect .macros .Context
9
+ import scala .reflect .internal .annotations .compileTimeOnly
9
10
10
11
object Async extends AsyncBase {
11
12
@@ -56,8 +57,7 @@ abstract class AsyncBase {
56
57
* @tparam T the type of that value.
57
58
* @return the value.
58
59
*/
59
- // TODO Replace with `@compileTimeOnly when this is implemented SI-6539
60
- @ deprecated(" `await` must be enclosed in an `async` block" , " 0.1" )
60
+ @ compileTimeOnly(" `await` must be enclosed in an `async` block" )
61
61
def await [T ](awaitable : futureSystem.Fut [T ]): T = ???
62
62
63
63
protected [async] def fallbackEnabled = false
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import org.junit.Test
13
13
class NakedAwait {
14
14
@ Test
15
15
def `await only allowed in async neg` () {
16
- expectError(" `await` must be enclosed in an `async` block" , " -deprecation -Xfatal-warnings " ) {
16
+ expectError(" `await` must be enclosed in an `async` block" ) {
17
17
"""
18
18
| import _root_.scala.async.Async._
19
19
| await[Any](null)
You can’t perform that action at this time.
0 commit comments