aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
diff options
context:
space:
mode:
authorNicolas Stucki <nicolas.stucki@gmail.com>2016-12-17 19:22:28 +0100
committerGitHub <noreply@github.com>2016-12-17 19:22:28 +0100
commit5df985cc599a0c69029773e3416bbb5fc883476a (patch)
tree695e269d3853b63ae65fe494355a4bf10f85be81 /tests/pos
parent5920b747e8263d8a7b0f8d913fd4fb24fc1f51ff (diff)
parent0a07f7f3385e5cc65fe58db753d2781ecf14ec41 (diff)
downloaddotty-5df985cc599a0c69029773e3416bbb5fc883476a.tar.gz
dotty-5df985cc599a0c69029773e3416bbb5fc883476a.tar.bz2
dotty-5df985cc599a0c69029773e3416bbb5fc883476a.zip
Merge pull request #1819 from dotty-staging/fix-#1803
Fix #1803: Infer type parameters of anonymous class parents from expected type
Diffstat (limited to 'tests/pos')
-rw-r--r--tests/pos/i1803.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/pos/i1803.scala b/tests/pos/i1803.scala
new file mode 100644
index 000000000..19bf21918
--- /dev/null
+++ b/tests/pos/i1803.scala
@@ -0,0 +1,7 @@
+class C[T]
+
+object Test {
+ def f(x: C[Int]) = ???
+
+ f(new C {})
+}