diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/neg/nested_bounds.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/neg/nested_bounds.scala b/tests/neg/nested_bounds.scala new file mode 100644 index 000000000..ee6c67c0e --- /dev/null +++ b/tests/neg/nested_bounds.scala @@ -0,0 +1,5 @@ +class OnlyInt[T <: Int] + +object Test { + type T = List[OnlyInt[String]] // error: Type argument String does not conform to upper bound Int +} |