diff options
Diffstat (limited to 'tests/untried/pos/t5508-min-okay2.scala')
-rw-r--r-- | tests/untried/pos/t5508-min-okay2.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/untried/pos/t5508-min-okay2.scala b/tests/untried/pos/t5508-min-okay2.scala new file mode 100644 index 000000000..935f28609 --- /dev/null +++ b/tests/untried/pos/t5508-min-okay2.scala @@ -0,0 +1,4 @@ +trait TopTrait { // must be nested and a trait + private[this] val _st : Int = 0 // crashes if TopTrait is not top level + val escape = { () => _st } +} |