We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8fb65a commit 01e0b3fCopy full SHA for 01e0b3f
compiler/src/dotty/tools/dotc/transform/init/Semantic.scala
@@ -559,6 +559,7 @@ object Semantic {
559
if obj.hasField(target) then
560
Result(obj.field(target), Nil)
561
else if ref.isInstanceOf[Warm] then
562
+ assert(obj.klass.isSubClass(target.owner))
563
if target.is(Flags.ParamAccessor) then
564
// possible for trait parameters
565
// see tests/init/neg/trait2.scala
0 commit comments