Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 104 for type$val (0.15 sec)

  1. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/accessors/ProjectSchemaTest.kt

                equalTo(inaccessible(type, nonAvailable(type.kotlinString)))
            )
        }
    
        @Test
        fun `public type is represented as Accessible`() {
    
            val typeString = "existing.Type"
    
            val classPath = classPathWithPublicType(typeString)
            classLoaderFor(classPath).useToRun {
                val type = schemaTypeFor(typeString)
                val projectSchema = availableProjectSchemaFor(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/NamedDomainObjectCollectionExtensionsTest.kt

                    domainObject,
                    typeOf<NamedDomainObjectProvider<DomainObject>>()
                )
            }
        }
    
        @Test
        fun `val domainObject by registering(type)`() {
    
            val domainObjectProvider = mockDomainObjectProviderFor(DomainObject())
            val container = mock<PolymorphicDomainObjectContainer<Any>> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 19.1K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/ProjectExtensionsTest.kt

    import org.junit.Test
    
    
    @Suppress("deprecation")
    class ProjectExtensionsTest {
    
        abstract class CustomConvention
    
        @Test
        fun `can get generic project extension by type`() {
    
            val project = mock<Project>()
            val convention = mock<org.gradle.api.plugins.Convention>()
            val extension = mock<NamedDomainObjectContainer<List<String>>>()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  4. test/method2.go

    func (p *I1) val() int { return 1 } // ERROR "receiver.*interface|invalid pointer or interface receiver"
    
    type Val interface {
    	val() int
    }
    
    var _ = (*Val).val // ERROR "method|type \*Val is pointer to interface, not interface"
    
    var v Val
    var pv = &v
    
    var _ = pv.val() // ERROR "undefined|pointer to interface"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 10 22:48:40 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/ExtensionAwareExtensionsTest.kt

                verify(extensionContainer).configure(eq(extensionType), any<Action<JacocoTaskExtension>>())
                verifyNoMoreInteractions()
            }
        }
    
        @Test
        fun `can get generic extension by type`() {
    
            val extensionAware = mock<ExtensionAware>()
            val extensions = mock<ExtensionContainer>()
            val extension = mock<NamedDomainObjectContainer<List<String>>>()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  6. test/fixedbugs/issue5698.go

    // license that can be found in the LICENSE file.
    
    // Issue 5698: can define a key type with slices.
    
    package main
    
    type Key struct {
    	a int16 // the compiler was confused by the padding.
    	b []int
    }
    
    type Val struct{}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 396 bytes
    - Viewed (0)
  7. test/typeparam/issue48454.dir/a.go

    // Copyright 2021 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package a
    
    import "sync"
    
    type Val[T any] struct {
    	mu  sync.RWMutex
    	val T
    }
    
    func (v *Val[T]) Has() {
    	v.mu.RLock()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 24 18:21:14 UTC 2021
    - 280 bytes
    - Viewed (0)
  8. test/typeparam/gencrawler.dir/a.go

    // Copyright 2021 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package a
    
    var V val[int]
    
    type val[T any] struct {
    	valx T
    }
    
    func (v *val[T]) Print() {
    	v.print1()
    }
    
    func (v *val[T]) print1() {
    	println(v.valx)
    }
    
    func (v *val[T]) fnprint1() {
    	println(v.valx)
    }
    
    func FnPrint[T any](v *val[T]) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 10 19:51:05 UTC 2022
    - 412 bytes
    - Viewed (0)
  9. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/analysis/SubtypingTest.kt

        @Test
        fun `type-checks assignment of subtype to superclass type`() {
            val result = schema.resolve(
                """
                superClassProp = sub()
                """.trimIndent()
            )
    
            assertEquals(1, result.assignments.size)
        }
    
        @Test
        fun `type-checks assignment of subtype to super interface type`() {
            val result = schema.resolve(
                """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:08:02 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/KotlinGrammar.kt

                optional(
                    expression * zeroOrMore(token(COMMA) * expression) * optional(token(COMMA))
                )
            )
    
        val parenthesizedType by debug {
            paren(type)
        }
    
        val parenthesizedExpression by debug {
            paren(expression)
        }
    
        val valueArgument by debug {
            optional(annotation) * optional(simpleIdentifier * token(EQ)) * optional(token(MUL)) * expression
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 8.4K bytes
    - Viewed (0)
Back to top