diff options
Diffstat (limited to 'tests/pos/structural.scala')
-rw-r--r-- | tests/pos/structural.scala | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/pos/structural.scala b/tests/pos/structural.scala deleted file mode 100644 index 8afa49ed0..000000000 --- a/tests/pos/structural.scala +++ /dev/null @@ -1,21 +0,0 @@ -object test123 { - type A = { def a: Int } - def f(a: A): A = a -} - -object structural2 { - type A = { def a: Int } - - type B = { - def b: Int - } - - type AB = A & B - - def f(ab: AB): AB = ab - - f(new { - def a = 43 - def b = 42 - }) -}
\ No newline at end of file |