summaryrefslogtreecommitdiff
path: root/test/files/pos/bug1119.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/bug1119.scala')
-rw-r--r--test/files/pos/bug1119.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/pos/bug1119.scala b/test/files/pos/bug1119.scala
new file mode 100644
index 0000000000..8b36877c49
--- /dev/null
+++ b/test/files/pos/bug1119.scala
@@ -0,0 +1,10 @@
+trait B
+{
+ type T >: this.type <: B
+
+
+ // compile-time check: have we achieved our objective?
+ def test: T = this
+}
+
+