diff options
Diffstat (limited to 'test/files/neg/bug712.scala')
-rw-r--r-- | test/files/neg/bug712.scala | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/files/neg/bug712.scala b/test/files/neg/bug712.scala new file mode 100644 index 0000000000..0887810c85 --- /dev/null +++ b/test/files/neg/bug712.scala @@ -0,0 +1,19 @@ +trait A { + type Node <: NodeImpl; + implicit def coerce(n : NodeImpl) = n.self; + trait NodeImpl { + def self : Node; + } +} +trait B extends A { + type Parent <: ParentImpl; + implicit def coerce(p : ParentImpl) = p.self; + trait ParentImpl; + type Symbol; + trait SymbolImpl { + def scope : Int; + } + implicit def coerceSym(sym : Symbol) : SymbolImpl; + var s : Symbol = null; + val s_scope = s.scope; +} |