diff options
author | Martin Odersky <odersky@gmail.com> | 2014-09-06 04:47:17 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-09-06 04:47:17 +0200 |
commit | a661bed267745d5f19f967712462b3f038ad8dcd (patch) | |
tree | d19a17df334100dcf0ed9eda056b019c064aedaf /tests/pos | |
parent | c0b69bb4b51605cbd0230e672cd4d026011c0e8d (diff) | |
download | dotty-a661bed267745d5f19f967712462b3f038ad8dcd.tar.gz dotty-a661bed267745d5f19f967712462b3f038ad8dcd.tar.bz2 dotty-a661bed267745d5f19f967712462b3f038ad8dcd.zip |
Bring back blockescapes test...
... by reverting a premature optimization in Erasure.
Diffstat (limited to 'tests/pos')
-rw-r--r-- | tests/pos/blockescapes.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/pos/blockescapes.scala b/tests/pos/blockescapes.scala new file mode 100644 index 000000000..35d40974b --- /dev/null +++ b/tests/pos/blockescapes.scala @@ -0,0 +1,11 @@ +object blockescapes { + + { val x = 0; () } + val x0 = { class Foo; new Foo } + val x1 = {} + val x2 = { val z = 0 } + val m1 = { val x = 2; x } + + trait T + def m0: T = { object Foo { class Bar extends T } ; new Foo.Bar } +}
\ No newline at end of file |