Created
October 10, 2013 12:51
-
-
Save xeno-by/6917825 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14:51 ~/Projects/210x/sandbox (2.10.x)$ cat Async.scala | |
package scala { | |
package object async { | |
def apply[T](x: => T): T = x | |
} | |
}14:51 ~/Projects/210x/sandbox (2.10.x)$ kst | |
Test.scala:2: error: package scala.async is not a value | |
async(println("hello")) | |
^ | |
[[syntax trees at end of typer]] // Test.scala | |
package <empty> { | |
object Test extends AnyRef with App { | |
def <init>(): Test.type = { | |
Test.super.<init>(); | |
() | |
}; | |
async(println("hello")) | |
} | |
} | |
one error found |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment