Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 535 for createBar (0.23 sec)

  1. test/typeparam/issue48604.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    type Foo[T any] interface {
    	CreateBar() Bar[T]
    }
    
    type Bar[T any] func() Bar[T]
    
    func (f Bar[T]) CreateBar() Bar[T] {
    	return f
    }
    
    func abc[R any]() {
    	var _ Foo[R] = Bar[R](nil)()
    }
    
    func main() {
    	abc[int]()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 396 bytes
    - Viewed (0)
  2. test/typeparam/issue48617.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    type Foo[T any] interface {
    	CreateBar() Bar[T]
    }
    
    type Bar[T any] func() Bar[T]
    
    func (f Bar[T]) CreateBar() Bar[T] {
    	return f
    }
    
    func abc[T any]() {
    	var b Bar[T] = func() Bar[T] {
    		var b Bar[T]
    		return b
    	}
    	var _ Foo[T] = b()
    }
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 446 bytes
    - Viewed (0)
  3. operator/pkg/util/progress/progress.go

    	bar        *pb.ProgressBar
    	template   string
    	mu         sync.Mutex
    	state      InstallState
    }
    
    func NewLog() *Log {
    	return &Log{
    		components: map[string]*ManifestLog{},
    		bar:        createBar(),
    	}
    }
    
    const inProgress = `{{ yellow (cycle . "-" "-" "-" " ") }} `
    
    // createStatus will return a string to report the current status.
    // ex: - Processing resources for components. Waiting for foo, bar
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 19:23:44 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/bundling/ArchiveIntegrationTest.groovy

                }
                zipdir1 {
                    file 'file1.txt'
                }
            }
            createTar('test.tar') {
                shared {
                    file 'tar.txt'
                }
                tardir1 {
                    file 'file1.txt'
                }
            }
            createDir('test') {
                shared {
                    file 'dir.txt'
                }
                dir1 {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  5. platforms/core-runtime/build-process-services/src/test/groovy/org/gradle/api/internal/classpath/ManifestUtilTest.groovy

        }
    
        def "returns empty classpath for jar without manifest"() {
            when:
            createJar()
    
            then:
            ManifestUtil.parseManifestClasspath(jarFile) == []
        }
    
        def "returns empty classpath for jar with manifest without Class-Path"() {
            when:
            createJar(manifestWithClasspath(null))
    
            then:
            ManifestUtil.parseManifestClasspath(jarFile) == []
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 06:16:07 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  6. platforms/software/resources/src/test/groovy/org/gradle/internal/resource/UriTextResourceTest.groovy

            file.text = '<content>'
    
            UriTextResource resource = new UriTextResource('<display-name>', createJar(), resolver)
    
            then:
            resource.exists
            resource.text == "<content>"
        }
    
        def hasNoContentWhenUsingJarUriAndFileDoesNotExistInJar() {
            when:
            URI jarUri = createJar()
            UriTextResource resource = new UriTextResource('<display-name>', jarUri, resolver)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/normalization/ConfigureRuntimeClasspathNormalizationIntegrationTest.groovy

                    ignoredResourceInNestedJar = new TestResource(file('some/package/ignored.txt') << "This should be ignored", this.&createJar)
                    notIgnoredResourceInNestedJar = new TestResource(file('some/package/not-ignored.txt') << "This should not be ignored", this.&createJar)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 01 03:07:53 UTC 2023
    - 37.2K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/groovy/scripts/TextResourceScriptSourceTest.java

        @Before
        public void setUp() throws URISyntaxException {
            testDir = tmpDir.createDir("scripts");
            scriptFile = new File(testDir, "build.script");
            scriptFileUri = scriptFile.toURI();
            createJar();
        }
    
        private URI createJar() throws URISyntaxException {
            TestFile jarFile = tmpDir.getTestDirectory().file("test.jar");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 15 01:04:05 UTC 2023
    - 12K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/es/log/cbean/cq/bs/BsUserInfoCQ.java

        public void setCreatedAt_Equal(LocalDateTime createdAt) {
            setCreatedAt_Term(createdAt, null);
        }
    
        public void setCreatedAt_Equal(LocalDateTime createdAt, ConditionOptionCall<TermQueryBuilder> opLambda) {
            setCreatedAt_Term(createdAt, opLambda);
        }
    
        public void setCreatedAt_Term(LocalDateTime createdAt) {
            setCreatedAt_Term(createdAt, null);
        }
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/es/log/cbean/cq/bs/BsFavoriteLogCQ.java

        public void setCreatedAt_Equal(LocalDateTime createdAt) {
            setCreatedAt_Term(createdAt, null);
        }
    
        public void setCreatedAt_Equal(LocalDateTime createdAt, ConditionOptionCall<TermQueryBuilder> opLambda) {
            setCreatedAt_Term(createdAt, opLambda);
        }
    
        public void setCreatedAt_Term(LocalDateTime createdAt) {
            setCreatedAt_Term(createdAt, null);
        }
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 42.7K bytes
    - Viewed (0)
Back to top