summaryrefslogtreecommitdiff
path: root/test/files/pos/t3890.scala
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@epfl.ch>2010-10-12 14:24:59 +0000
committerAdriaan Moors <adriaan.moors@epfl.ch>2010-10-12 14:24:59 +0000
commit44d0bb2426c23ede04a0f6c5873bdb8567eac5e3 (patch)
tree04823fbfc62d30e240d8b14596e3d962ba2ce577 /test/files/pos/t3890.scala
parentb7efe9089062fd3908c07f19ee16a4ec39afdbb8 (diff)
downloadscala-44d0bb2426c23ede04a0f6c5873bdb8567eac5e3.tar.gz
scala-44d0bb2426c23ede04a0f6c5873bdb8567eac5e3.tar.bz2
scala-44d0bb2426c23ede04a0f6c5873bdb8567eac5e3.zip
closes #3890: propagate inferred type parameter...
closes #3890: propagate inferred type parameters to info of undetermined type parameters. review by imaier.
Diffstat (limited to 'test/files/pos/t3890.scala')
-rw-r--r--test/files/pos/t3890.scala4
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