-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix nullchecks and killing of pointed at
- Loading branch information
Showing
10 changed files
with
74 additions
and
16 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
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,15 @@ | ||
//@execute 0=4; 100=4 | ||
class C { | ||
def m() -> int { return [2].length; } | ||
} | ||
class D extends C { | ||
def m() -> int { return [2, 3].length; } | ||
} | ||
def c = C.new(); | ||
def d = D.new(); | ||
def main(x: int) -> int { | ||
return sum(c, d, (c, [0]).0); | ||
} | ||
def sum(x: C, y: C, z: C) -> int { | ||
return x.m() + y.m() + z.m(); | ||
} |
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,16 @@ | ||
//@execute 0=4; 100=4 | ||
class C { | ||
def m() -> int { return [2].length; } | ||
} | ||
class D extends C { | ||
def m() -> int { return [2, 3].length; } | ||
} | ||
def c = C.new(); | ||
def d = D.new(); | ||
def a = [0]; | ||
def main(x: int) -> int { | ||
return sum(c, d, (c, a).0); | ||
} | ||
def sum(x: C, y: C, z: C) -> int { | ||
return x.m() + y.m() + z.m(); | ||
} |
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,18 @@ | ||
//@execute 0=4; 100=4 | ||
def c = C.new(); | ||
def d = D.new(); | ||
def a = [0]; | ||
def one = [2]; | ||
def two = [2, 3]; | ||
class C { | ||
def m() -> int { return one.length; } | ||
} | ||
class D extends C { | ||
def m() -> int { return two.length; } | ||
} | ||
def main(x: int) -> int { | ||
return sum(c, d, (c, a).0); | ||
} | ||
def sum(x: C, y: C, z: C) -> int { | ||
return x.m() + y.m() + z.m(); | ||
} |
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
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