- Sort Score
- Result 10 results
- Languages All
Results 51 - 55 of 55 for caret_context (0.23 sec)
-
analysis/analysis-api/testData/components/compilerFacility/compilation/codeFragments/capturing/smartCastExtensionReceiver.kt
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jan 30 11:41:26 UTC 2024 - 543 bytes - Viewed (0) -
analysis/analysis-api/testData/components/compilerFacility/compilation/codeFragments/capturing/multipleClassAndFunctionContextReceivers.kt
class Ctx1 class Ctx2 class Ctx3 class Ctx4 context(Ctx1, Ctx2, Ctx3, Ctx4) fun useWithCtx1Ctx2Ctx3Ctx4() = 3 context(Ctx1, Ctx2) class Test { context(Ctx3, Ctx4) fun foo() { <caret_context>val x = 1 } } // MODULE: main // MODULE_KIND: CodeFragment // CONTEXT_MODULE: context // FILE: fragment.kt // CODE_FRAGMENT_KIND: EXPRESSION
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jan 30 11:41:26 UTC 2024 - 453 bytes - Viewed (0) -
analysis/analysis-api/testData/components/compilerFacility/compilation/codeFragments/annotationUsage.kt
@Target(AnnotationTarget.FUNCTION) annotation class Anno(val x: String = "foo") // FILE: context.kt import lib.Anno @Anno fun foo(): Int = 5 @Anno(x = "bar") fun bar(): Int = 10 fun test() { <caret_context>val x = 0 } // MODULE: main // MODULE_KIND: CodeFragment // CONTEXT_MODULE: context // FILE: fragment.kt // CODE_FRAGMENT_KIND: EXPRESSION
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jan 30 11:41:26 UTC 2024 - 418 bytes - Viewed (0) -
analysis/analysis-api/testData/components/compilerFacility/compilation/codeFragments/capturing/preferCorrectResolve.kt
// MODULE: context // FILE: context.kt class A { private fun foo(x: Int) = 1 + x fun foo(x: Any) = 2 } fun test(a: A) { <caret_context>val x = 0 } // MODULE: main // MODULE_KIND: CodeFragment // CONTEXT_MODULE: context // FILE: fragment.kt // CODE_FRAGMENT_KIND: EXPRESSION // Need to choose public foo(Any) call instead of more specific but private call foo(Int)
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jan 30 11:41:26 UTC 2024 - 388 bytes - Viewed (0) -
analysis/analysis-api/testData/components/compilerFacility/compilation/codeFragments/capturing/localDelegatedProperty.kt
return value } operator fun setValue(thisRef: Any?, property: KProperty<*>, value: String) { this.value = value } } fun test() { var x by Delegate("a") <caret_context>x } // MODULE: main // MODULE_KIND: CodeFragment // CONTEXT_MODULE: context // FILE: fragment.kt // CODE_FRAGMENT_KIND: BLOCK x = "O"
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jan 30 11:41:26 UTC 2024 - 541 bytes - Viewed (0)