diff options
author | odersky <odersky@gmail.com> | 2016-12-20 17:18:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-20 17:18:30 +0100 |
commit | 098c50ac83eb4d18b23a1ed888cf601053c46ae6 (patch) | |
tree | d5c45fd83ebccf3c8dc923e41e695723a3c04a1a /tests/pos | |
parent | afa83099a2300fcd09afe6514f9112c75f9fb4dc (diff) | |
parent | a7d17e286760879a35dfaeeadca1dbad2aa85dfc (diff) | |
download | dotty-098c50ac83eb4d18b23a1ed888cf601053c46ae6.tar.gz dotty-098c50ac83eb4d18b23a1ed888cf601053c46ae6.tar.bz2 dotty-098c50ac83eb4d18b23a1ed888cf601053c46ae6.zip |
Merge pull request #1832 from dotty-staging/fix-1810
Fix #1812, Symbols.mapSymbols shouldn't replace denotations
Diffstat (limited to 'tests/pos')
-rw-r--r-- | tests/pos/i1812.scala | 12 | ||||
-rw-r--r-- | tests/pos/i1812b.scala | 11 |
2 files changed, 23 insertions, 0 deletions
diff --git a/tests/pos/i1812.scala b/tests/pos/i1812.scala new file mode 100644 index 000000000..653274883 --- /dev/null +++ b/tests/pos/i1812.scala @@ -0,0 +1,12 @@ +class FF[R] { + def compose(): R = ??? +} + +class Test(x: Int) extends AnyVal { + def method: Unit = { + class Bla + class Foo extends FF[Bla] { + override def compose() = super[FF].compose() + } + } +} diff --git a/tests/pos/i1812b.scala b/tests/pos/i1812b.scala new file mode 100644 index 000000000..492c545f1 --- /dev/null +++ b/tests/pos/i1812b.scala @@ -0,0 +1,11 @@ +class FF[R] { + def compose(): R = ??? +} + +class Test(x: Int) extends AnyVal { + def method: Unit = { + class Bla{ def bar:a.S = ???} + trait TRT{ type S} + val a: TRT = ??? + } +} |