diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/files/pos/t3890.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/pos/t3890.scala b/test/files/pos/t3890.scala new file mode 100644 index 0000000000..bfc4754779 --- /dev/null +++ b/test/files/pos/t3890.scala @@ -0,0 +1,4 @@ +object Test { + def g[S, T <: S](s: S)(t: T): Unit = println("") + g("a")("a") // error: inferred type arguments [java.lang.String] do not conform to method g's type parameter bounds [T <: S] +}
\ No newline at end of file |