Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 133 for newD (0.04 sec)

  1. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/demo/demoSimple/SimpleAnalysisDemo.kt

        externalFunctions = listOf(::newD),
        defaultImports = listOf(DefaultFqName("com.example", "newD"))
    )
    
    
    object SimpleAnalysisDemo {
        @JvmStatic
        fun main(args: Array<String>) {
            printResolutionResults(
                schema.resolve(
                    """
                        val myB = b()
    
                        a = myB
                        val myD = newD("shared")
    
                        val c1 = c(1)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:08:01 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/demo/demoSimple/demoTypes.kt

    }
    
    
    class C(var x: Int = 0) {
        @Builder
        fun d(newD: D): C {
            this.d = newD
            return this
        }
    
        @get:Restricted
        var d: D = D()
    
        @get:Restricted
        val y = "test"
    
        @Restricted
        fun f(y: String) = 0
    }
    
    
    class D {
        @get:Restricted
        var id: String = "none"
    }
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 06 23:16:59 UTC 2024
    - 949 bytes
    - Viewed (0)
  3. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/demo/demoSimple/AssignmentResolverDemo.kt

    import org.gradle.internal.declarativedsl.demo.resolve
    
    
    object AssignmentResolverDemo {
        @JvmStatic
        fun main(args: Array<String>) {
            val resolution = schema.resolve(
                """
                val myD = newD("shared")
    
                val c1 = c(1)
                c1.d = myD
                str = c1.d.id
                """.trimIndent()
            )
            printResolutionResults(resolution)
            printResolvedAssignments(resolution)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 10:53:44 UTC 2024
    - 647 bytes
    - Viewed (0)
  4. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/sample.kt

    package com.example
    
    
    fun Abc.body() {
        val myB = b()
    
        a = myB
        val myD = newD("shared")
    
        c(1) {
            x = f(y)
            d = myD
        }
        c(2) {
            x = f("another test")
            d = myD
        }
    }
    
    
    object Main {
        @JvmStatic
        fun main(args: Array<String>) {
            val receiver = Abc()
            receiver.body()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 01 13:30:30 UTC 2024
    - 425 bytes
    - Viewed (0)
  5. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/demo/demoSimple/AssignmentResolverTest.kt

    import kotlin.test.assertIs
    
    
    object AssignmentResolverTest {
        @Test
        fun `resolves transitive property`() {
            assignmentTrace(
                schema.resolve(
                    """
                    val myD = newD("shared")
                    val c1 = c(1)
                    c1.d = myD
                    str = c1.d.id
                    """.trimIndent()
                )
            ).run {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 10:53:44 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. test/typeparam/issue50598.dir/a0.go

    // license that can be found in the LICENSE file.
    
    package a0
    
    type Builder[T any] struct{}
    
    func (r Builder[T]) New1() T {
    	var v T
    	return v
    }
    
    func (r Builder[T]) New2() T {
    	var v T
    	return v
    }
    
    type IntBuilder struct{}
    
    func (b IntBuilder) New() int {
    	return Builder[int]{}.New2()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 14 16:41:18 UTC 2022
    - 398 bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/runtime/extension_test.go

    			t.Errorf("2nd unmarshal error: %v", err)
    		}
    		if !bytes.Equal(data, newData) {
    			t.Errorf("%s: re-marshaled data differs from original: %v %v", k, data, newData)
    		}
    		if !reflect.DeepEqual(tc.orig, new1) {
    			t.Errorf("%s: unmarshaled struct differs from original: %v %v", k, tc.orig, new1)
    		}
    		if !reflect.DeepEqual(new1, new2) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 08 22:36:37 UTC 2017
    - 2.8K bytes
    - Viewed (0)
  8. src/runtime/iface.go

    	newN := n * 2                         // make it at most 50% full
    	newN = 1 << sys.Len64(uint64(newN-1)) // round up to a power of 2
    
    	// Allocate the new table.
    	newSize := unsafe.Sizeof(abi.TypeAssertCache{}) + uintptr(newN-1)*unsafe.Sizeof(abi.TypeAssertCacheEntry{})
    	newC := (*abi.TypeAssertCache)(mallocgc(newSize, nil, true))
    	newC.Mask = uintptr(newN - 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  9. tests/named_argument_test.go

    	if err := DB.Exec("UPDATE named_users SET name1 = @name, name2 = @name2, name3 = @name", sql.Named("name", "jinzhu-new"), sql.Named("name2", "jinzhu-new2")).Error; err != nil {
    		t.Errorf("failed to update with named arg")
    	}
    
    	namedUser.Name1 = "jinzhu-new"
    	namedUser.Name2 = "jinzhu-new2"
    	namedUser.Name3 = "jinzhu-new"
    
    	var result5 NamedUser
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Dec 21 11:50:00 UTC 2021
    - 2.7K bytes
    - Viewed (0)
  10. tests/hooks_test.go

    	DB.Model(&product).Updates(map[string]interface{}{"Name": "Product New"})
    
    	if product.Name != "Product New" || product.Price != 160 || product.Code != "L1212" {
    		t.Errorf("invalid data after update, got %+v", product)
    	}
    
    	// Code changed, but not selected, price should not change
    	DB.Model(&product).Select("Name", "Price").Updates(map[string]interface{}{"Name": "Product New2", "code": "L1213"})
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Feb 18 01:20:29 UTC 2023
    - 15.9K bytes
    - Viewed (0)
Back to top