- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 202 for Implicits (0.19 sec)
-
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtSmartCastProvider.kt
/** * Returns the list of implicit smart-casts which are required for the expression to be called. Includes only implicit * smart-casts: * * ```kt * if (this is String) { * this.substring() // 'this' receiver is explicit, so no implicit smart-cast here. * * smartcast() // 'this' receiver is implicit, therefore there is implicit smart-cast involved. * } * ``` */
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:35 UTC 2024 - 3.6K bytes - Viewed (0) -
test/fixedbugs/issue15572.dir/a.go
} func Fi() []T { return []T{{}} // element with implicit composite literal type } func Fp() []*T { return []*T{&T{}} } func Fip() []*T { return []*T{{}} // element with implicit composite literal type } func Gp() map[int]*T { return map[int]*T{0: &T{}} } func Gip() map[int]*T { return map[int]*T{0: {}} // element with implicit composite literal type } func Hp() map[*T]int {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 09 06:16:07 UTC 2016 - 738 bytes - Viewed (0) -
test/convlit.go
var bad8 float32 = 1e200 // ERROR "overflow" // but these implicit conversions are okay var good1 string = "a" var good2 int = 1.0 var good3 int = 1e9 var good4 float64 = 1e20 // explicit conversion of string is okay var _ = []rune("abc") var _ = []byte("abc") // implicit is not var _ []int = "abc" // ERROR "cannot use|incompatible|invalid|cannot convert"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 23 05:11:09 UTC 2021 - 2.4K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/configurations/DefaultConfigurationPublicationsTest.groovy
expect: def variants = getOutgoingVariants(publications) variants.size() == 2 def implicit = variants.first() implicit.displayName == displayName implicit.attributes == AttributeTestUtil.attributes(["thing": "value1"]) implicit.artifacts == allArtifacts def explicit = (variants as List)[1] explicit.displayName.displayName == '<config> variant child'
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 09 11:21:15 UTC 2024 - 9.6K bytes - Viewed (0) -
build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/HtmlToXmlJavadocLexerTest.groovy
} def "closes implicit <p> element at start of block element"() { expect: parse(source) == transformed where: source | transformed "text<p>para 2</p>" | "<p>text</p><p>para 2</p>" "text<h2>text</h2>" | "<p>text</p><h2>text</h2>" } def "does not add implicit <p> element for elements with inline content"() { expect:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 6.5K bytes - Viewed (0) -
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtReferenceResolveMixIn.kt
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Thu May 23 08:30:49 UTC 2024 - 1.8K bytes - Viewed (0) -
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/resolution/KaReceiverValue.kt
override val type: KaType by validityAsserted(type) } /** * An implicit receiver. For example * ``` * class A { * val i: Int = 1 * fun test() { * i // implicit receiver bound to class `A` * } * } * * fun String.test() { * length // implicit receiver bound to the `KaReceiverParameterSymbol` of type `String` declared by `test`. * } * ``` */
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed Jun 05 16:16:39 UTC 2024 - 3.2K bytes - Viewed (0) -
src/cmd/cgo/internal/testshared/testdata/explicit/explicit.go
package explicit import ( "testshared/implicit" ) func E() int { return implicit.I()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 91 bytes - Viewed (0) -
src/cmd/cgo/internal/testshared/testdata/implicitcmd/implicitcmd.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 126 bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/support/ImplicitImportsTest.kt
import org.hamcrest.CoreMatchers.containsString import org.hamcrest.MatcherAssert.assertThat import org.junit.Test class ImplicitImportsTest : AbstractKotlinIntegrationTest() { @Test fun `implicit imports are fully qualified to allow use of the preferred type amongst those with same simple name in different Gradle API packages`() { // given: withBuildScript( """
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sun Sep 24 17:45:42 UTC 2023 - 1.2K bytes - Viewed (0)