-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
K2: fix withNullability() for ConeIntersectionType
Before this commit, we assumed that ConeIntersectionType is always NOT_NULL, so (SomeType? & OtherType?).withNullability(NOT_NULL) changed nothing in the input type. However, in fact it should return (SomeType & OtherType), so this commit fixes withNullability logic in accordance. #KT-67912 Fixed
- Loading branch information
1 parent
f6a80b8
commit b165a34
Showing
7 changed files
with
35 additions
and
50 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
12 changes: 0 additions & 12 deletions
12
compiler/testData/diagnostics/tests/inference/genericWithUnmatchedNullabilityDelegate.fir.kt
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
compiler/testData/diagnostics/tests/inference/genericWithUnmatchedNullabilityDelegate.kt
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,3 +1,4 @@ | ||
// FIR_IDENTICAL | ||
// ISSUE: KT-67912 | ||
// WITH_STDLIB | ||
|
||
|
12 changes: 0 additions & 12 deletions
12
compiler/testData/diagnostics/tests/inference/genericsWithUnmatchedNullabilityNested.fir.kt
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
compiler/testData/diagnostics/tests/inference/genericsWithUnmatchedNullabilityNested.kt
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,3 +1,4 @@ | ||
// FIR_IDENTICAL | ||
// ISSUE: KT-67912 | ||
// WITH_STDLIB | ||
|
||
|
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