diff options
author | Nada Amin <namin@alum.mit.edu> | 2012-02-23 15:10:27 +0100 |
---|---|---|
committer | Nada Amin <namin@alum.mit.edu> | 2012-02-23 15:29:43 +0100 |
commit | 6f4fca6833267a7ec6ea1aeea9f0dc60112ab715 (patch) | |
tree | e477d4cd113644ad591d7cf01b02ffc6fa7f4847 /test/files | |
parent | d5006b118f6ad1bf10ed35491cd0bda05fc88972 (diff) | |
download | scala-6f4fca6833267a7ec6ea1aeea9f0dc60112ab715.tar.gz scala-6f4fca6833267a7ec6ea1aeea9f0dc60112ab715.tar.bz2 scala-6f4fca6833267a7ec6ea1aeea9f0dc60112ab715.zip |
Added test case for FinitaryError.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/neg/finitary-error.check | 4 | ||||
-rw-r--r-- | test/files/neg/finitary-error.scala | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/finitary-error.check b/test/files/neg/finitary-error.check new file mode 100644 index 0000000000..7bc92058ca --- /dev/null +++ b/test/files/neg/finitary-error.check @@ -0,0 +1,4 @@ +finitary-error.scala:3: error: class graph is not finitary because type parameter T is expansively recursive +trait C[T] extends A[C[B[T]]] + ^ +one error found diff --git a/test/files/neg/finitary-error.scala b/test/files/neg/finitary-error.scala new file mode 100644 index 0000000000..a48fcdc70f --- /dev/null +++ b/test/files/neg/finitary-error.scala @@ -0,0 +1,3 @@ +trait A[T] +trait B[T] +trait C[T] extends A[C[B[T]]] |