Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,111 for inner2 (0.11 sec)

  1. test/method7.go

    type S struct {
    }
    
    func (S) m()          { got += " m()" }
    func (S) m1(s string) { got += " m1(" + s + ")" }
    
    type T int
    
    func (T) m2() { got += " m2()" }
    
    type Outer struct{ *Inner }
    type Inner struct{ s string }
    
    func (i Inner) M() string { return i.s }
    
    func main() {
    	// method expressions with named receiver types
    	I.m(S{})
    	want += " m()"
    
    	S.m1(S{}, "a")
    	want += " m1(a)"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 26 17:05:06 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  2. src/testing/panic_test.go

        --- FAIL: TestPanicHelper/1 (N.NNs)
            panic_test.go:NNN: TestPanicHelper/1
    `,
    	}, {
    		desc:  "subtest panics with inner cleanup panic",
    		flags: []string{"-test_panic_test=TestPanicHelper/1", "-test_panic_cleanup", "-test_panic_cleanup_panic=inner"},
    		want: `
    ran inner cleanup 1
    ran middle cleanup 1
    ran outer cleanup
    --- FAIL: TestPanicHelper (N.NNs)
        panic_test.go:NNN: TestPanicHelper
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 27 16:49:24 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  3. test/fixedbugs/issue22794.go

    type it struct {
    	Floats bool
    	inner  string
    }
    
    func main() {
    	i1 := it{Floats: true}
    	if i1.floats { // ERROR "(type it .* field or method floats, but does have field Floats)|undefined field or method"
    	}
    	i2 := &it{floats: false} // ERROR "cannot refer to unexported field floats in struct literal|unknown field|declared and not used"
    	_ = &it{InneR: "foo"}    // ERROR "(but does have field inner)|unknown field"
    	_ = i2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 07 16:41:56 UTC 2024
    - 615 bytes
    - Viewed (0)
  4. analysis/analysis-api/testData/components/compilerFacility/compilation/classKinds.txt

        public final inner class Operation$Subtract
    }
    
    public abstract class Operation {
        // source: 'classKinds.kt'
        private method <init>(): void
        public synthetic method <init>(p0: kotlin.jvm.internal.DefaultConstructorMarker): void
        public final inner class Operation$Add
        public final inner class Operation$Negate
        public final inner class Operation$Subtract
    }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Dec 21 15:34:34 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/MethodDescriptionTest.groovy

        }
    
        def "inner class name format"() {
            expect:
            MethodDescription.name('a').owner(Outer.Inner).toString() == 'org.gradle.internal.reflect.MethodDescriptionTest$Outer$Inner#a'
        }
    
        class Outer {
            static class Inner {
    
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. src/fmt/errors_test.go

    	noVetErrorf := fmt.Errorf
    
    	wrapped := errors.New("inner error")
    	for _, test := range []struct {
    		err        error
    		wantText   string
    		wantUnwrap error
    		wantSplit  []error
    	}{{
    		err:        fmt.Errorf("%w", wrapped),
    		wantText:   "inner error",
    		wantUnwrap: wrapped,
    	}, {
    		err:        fmt.Errorf("added context: %w", wrapped),
    		wantText:   "added context: inner error",
    		wantUnwrap: wrapped,
    	}, {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 29 18:40:40 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  7. analysis/analysis-api/testData/components/containingDeclarationProvider/containingDeclarationByPsi/deeplyNestedCode.kt

    class X {
        fun foo() {
            class U {
                inner class K {
                    inner class D {
                        fun check() {
                            class F {
                                inner class L
                            }
                        }
                    }
                }
    
                class T
            }
        }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Oct 26 19:19:00 UTC 2022
    - 332 bytes
    - Viewed (0)
  8. pkg/kube/krt/recomputetrigger.go

    type RecomputeTrigger struct {
    	inner StaticSingleton[int32]
    	// krt will suppress events for unchanged resources. To workaround this, we constantly change and int each time TriggerRecomputation
    	// is called to ensure our event is not suppressed.
    	i *atomic.Int32
    }
    
    func NewRecomputeTrigger() *RecomputeTrigger {
    	inner := NewStatic[int32](ptr.Of(int32(0)))
    	return &RecomputeTrigger{inner: inner, i: atomic.NewInt32(0)}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 07 05:51:56 UTC 2024
    - 2K bytes
    - Viewed (0)
  9. test/typeparam/issue53406.go

    package main
    
    func main() {
    	f[int]()
    }
    
    func f[T1 any]() {
    	var x Outer[T1, int]
    	x.M()
    }
    
    type Outer[T1, T2 any] struct{ Inner[T2] }
    
    type Inner[_ any] int
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 22 16:25:18 UTC 2022
    - 354 bytes
    - Viewed (0)
  10. analysis/analysis-api/testData/components/compilerFacility/firPluginPrototypeMultiModule/functionParamInBinaryModule.txt

        synthetic final field $title: java.lang.String
        inner (anonymous) class MainKt$ArticleScreenContent$2
        method <init>(p0: java.lang.String): void
        public synthetic bridge method invoke(): java.lang.Object
        public final method invoke(): void
    }
    
    public final class MainKt {
        // source: 'main.kt'
        inner (anonymous) class MainKt$ArticleScreenContent$1
        inner (anonymous) class MainKt$ArticleScreenContent$2
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Mar 22 12:26:50 UTC 2024
    - 1.5K bytes
    - Viewed (0)
Back to top