68
68
scala> val three = "three"
71
71
scala> val three2 = m(three:three.type) // should change x to three
72
72
three2: String @Annot(three) = three
77
77
scala> val four2 = m(four) // should have an existential bound
80
81
scala> val four3 = four2 // should have the same type as four2
83
85
scala> val stuff = m("stuff") // should not crash
84
86
stuff: String @Annot("stuff") = stuff