Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for myExt2 (0.96 sec)

  1. analysis/analysis-api/testData/components/diagnosticsProvider/diagnostics/sameCallableIdFromDependencies.kt

    // FILE: util11.kt
    package my.pack
    
    fun Any.myExt() {}
    
    // FILE: util12.kt
    package my.pack
    
    val Any.myExt: Int get() = 10
    
    // MODULE: dep2
    // FILE: util21.kt
    package my.pack
    
    fun Any.myExt2() {}
    
    // FILE: util22.kt
    package my.pack
    
    val Any.myExt2: Int get() = 10
    
    // MODULE: main(dep1, dep2)
    // FILE: usage.kt
    package usage
    
    import my.pack.myExt
    import my.pack.myExt2
    
    fun test(a: Any) {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon Apr 29 19:19:13 UTC 2024
    - 476 bytes
    - Viewed (0)
  2. src/internal/types/testdata/examples/constraints.go

    // operation.
    
    type myInt1 int
    type myInt2 int
    
    func _[T interface{ myInt1|myInt2; ~int }]() T { return T(0) }
    func _[T interface{ ~int; myInt1|myInt2 }]() T { return T(0) }
    
    // Here the intersections are empty - there's no type that's in the type set of T.
    func _[T interface{ myInt1|myInt2; int }]() T { return T(0 /* ERROR "cannot convert" */ ) }
    func _[T interface{ int; myInt1|myInt2 }]() T { return T(0 /* ERROR "cannot convert" */ ) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/ProviderConventionMappingIntegrationTest.groovy

                    Provider<String> getFoo() {
                        return other
                    }
                }
    
                extensions.create("myext", MyExtension)
                myext {
                    conventionMapping.map("foo", { project.provider { "foobar" } })
                    other.convention("other")
                }
            """
    
            expect:
            runAndFail 'help'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 12:27:37 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top