Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ object Summarization {
if (cls == defn.AnyClass || cls == defn.AnyValClass) Effects.empty
else {
val ctor = cls.primaryConstructor
Summarization.analyze(tref.prefix, ref)._2 +
Summarization.analyze(New(ref.tpe))(env.withOwner(ctor.owner))._2 +
MethodCall(ThisRef()(ref), ctor)(ref)
}
})
Expand Down
9 changes: 9 additions & 0 deletions tests/init/crash/i9670.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
object Outer {
def foo = {
trait Mixin
class E extends Mixin
object SomeObject {
val A = E()
}
}
}