-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: record calls to constructors in lambdaLift (#22487)
- Loading branch information
Showing
4 changed files
with
38 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
def f() = | ||
val NotFound: Char = 'a' | ||
class crashing() { | ||
class issue() { | ||
NotFound | ||
} | ||
class Module() { | ||
val obligatory = | ||
class anonIssue() { | ||
issue() | ||
object Test { | ||
def f() = { | ||
val NotFound: Char = 'a' | ||
class crashing() { | ||
class issue() { | ||
NotFound | ||
} | ||
class Module() { | ||
val obligatory = { | ||
def anonIssue = { | ||
issue() | ||
} | ||
anonIssue | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
trait A | ||
trait OuterClass | ||
trait MidClass | ||
trait InnerClass | ||
|
||
object Obj: | ||
def outerDef(a: A) = | ||
new OuterClass { | ||
def midDef(): Unit = { | ||
new MidClass { | ||
val valdef = new InnerClass { | ||
def innerDef() = | ||
println(a) | ||
} | ||
} | ||
} | ||
} |