Skip to content

Block add a pair of brackets unexpectly. #6696

@scabug

Description

@scabug
Welcome to Scala version 2.10.0-RC2 (Java HotSpot(TM) Client VM, Java 1.7.0_09).

Type in expressions to have them evaluated.
Type :help for more information.

scala> import reflect.runtime.universe._
import reflect.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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions