You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Welcome to Scala version 2.10.0-RC2 (JavaHotSpot(TM) ClientVM, Java1.7.0_09).
Type in expressions to have them evaluated.
Type:help for more information.
scala>importreflect.runtime.universe._importreflect.runtime.universe._
scala>Block(Ident("foo"))
res0: reflect.runtime.universe.Block=
{
foo;
()
}
The pair of brackets change the result type to Unit, and I want it just be a foo.
The text was updated successfully, but these errors were encountered:
@xeno-by said:
@杨博: Use Block(Nil, Ident("foo")) instead.
@jason: It looks like we need to jettison all the "helper" tree factory methods I exposed from the compiler. Ident("foo") without explicitly specifying newTermName gives me shivers.
The pair of brackets change the result type to
Unit
, and I want it just be afoo
.The text was updated successfully, but these errors were encountered: