diff options
author | Nicolas Stucki <nicolas.stucki@gmail.com> | 2016-12-17 19:22:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-17 19:22:28 +0100 |
commit | 5df985cc599a0c69029773e3416bbb5fc883476a (patch) | |
tree | 695e269d3853b63ae65fe494355a4bf10f85be81 /tests/pos | |
parent | 5920b747e8263d8a7b0f8d913fd4fb24fc1f51ff (diff) | |
parent | 0a07f7f3385e5cc65fe58db753d2781ecf14ec41 (diff) | |
download | dotty-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.scala | 7 |
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 {}) +} |