From d84805299a42cb8d2c756aff5a117af24dbeaaf4 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Mon, 22 Aug 2016 16:18:49 +0200 Subject: Recategorize tests Passing tests from pending/pos go in pos. Some others go in diabled/not-testable. These are tests that require a compilation order which we cannot yet do with our unit testing framework. Compiling them alltogether (as is now doen in junit) does not work either for them because they contain a duplicate class. --- tests/pos/return_thistype.scala | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/pos/return_thistype.scala (limited to 'tests/pos/return_thistype.scala') diff --git a/tests/pos/return_thistype.scala b/tests/pos/return_thistype.scala new file mode 100644 index 000000000..c0736c0ad --- /dev/null +++ b/tests/pos/return_thistype.scala @@ -0,0 +1,8 @@ +// tests transformation of return type in typedTypeApply (see also tcpoly_gm.scala) +class As { + class A { + def foo: A.this.type = bar.asInstanceOf[A.this.type] + def foo2: this.type = bar.asInstanceOf[this.type] + def bar: A = null + } +} -- cgit v1.2.3