diff options
Diffstat (limited to 'test/files/pos/aliases.scala')
-rw-r--r-- | test/files/pos/aliases.scala | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/files/pos/aliases.scala b/test/files/pos/aliases.scala new file mode 100644 index 0000000000..bcca90d99d --- /dev/null +++ b/test/files/pos/aliases.scala @@ -0,0 +1,21 @@ +abstract class C() { + + type t <: C; + + val x: t; + val y: x.type; + val z: x.type; + + val xt: x.t; + val yt: y.t; + val zt: z.t; + + def fx(a: x.t): Unit; + def fy(a: y.t): Unit; + def fz(a: z.t): Unit; + + fx(xt); fx(yt); fx(zt); + fy(xt); fy(yt); fy(zt); + fz(xt); fz(yt); fz(zt); + +} |