diff options
Diffstat (limited to 'tests/untried/neg/t1431.scala')
-rw-r--r-- | tests/untried/neg/t1431.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/untried/neg/t1431.scala b/tests/untried/neg/t1431.scala new file mode 100644 index 000000000..aff1dbc01 --- /dev/null +++ b/tests/untried/neg/t1431.scala @@ -0,0 +1,10 @@ +object Bug_New { + trait MyTrait { + type Alpha + def the_value : Alpha + class Factory() {def value : Alpha = the_value} + } + + def fun[X<:MyTrait with Singleton]() = new X#Factory().value +} + |