-
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.
Use proper applicability for constraint warnings
^KT-47316 Fixed
- Loading branch information
Showing
17 changed files
with
426 additions
and
20 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
...s/tests-gen/org/jetbrains/kotlin/test/runners/FirOldFrontendDiagnosticsTestGenerated.java
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
...rg/jetbrains/kotlin/test/runners/FirOldFrontendDiagnosticsWithLightTreeTestGenerated.java
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
.../tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxCodegenTestGenerated.java
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,39 @@ | ||
// TARGET_BACKEND: JVM | ||
// IGNORE_BACKEND_FIR: JVM_IR | ||
|
||
// FILE: GoBuildingRunningState.java | ||
public abstract class GoBuildingRunningState<T extends GoBuildingRunConfiguration<? extends GoBuildingRunningState<T>>> implements RunProfileState { | ||
public String getBuildingWorkingDirectory() { | ||
return ""; | ||
} | ||
} | ||
|
||
// FILE: GoBuildingRunConfiguration.java | ||
public abstract class GoBuildingRunConfiguration<RunningState extends GoBuildingRunningState<? extends GoBuildingRunConfiguration<RunningState>>> { } | ||
|
||
// FILE: RunProfileState.java | ||
public interface RunProfileState { | ||
} | ||
|
||
// FILE: Test.java | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
public class Test { | ||
@Nullable | ||
public RunProfileState getState() { | ||
return null; | ||
} | ||
} | ||
|
||
// FILE: main.kt | ||
fun String.asFsdAddress(): String { | ||
return "" | ||
} | ||
|
||
fun box(): String { | ||
val state = Test().state | ||
if (state is GoBuildingRunningState<*>) { | ||
state.buildingWorkingDirectory.asFsdAddress() | ||
} | ||
return "OK" | ||
} |
Oops, something went wrong.