blob: 8afa49ed0e0b8d62b19000a7943d4752b30e9df2 (
plain) (
tree)
|
|
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
})
}
|