- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 2,729 for ninit (0.05 sec)
-
test/fixedbugs/issue5607.go
// license that can be found in the LICENSE file. // Issue 5607: generation of init() function incorrectly // uses initializers of blank variables inside closures. package main var Test = func() { var mymap = map[string]string{"a": "b"} var innerTest = func() { // Used to crash trying to compile this line as // part of init() (funcdepth mismatch). var _, x = mymap["a"] println(x) } innerTest() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Jun 02 21:54:34 UTC 2013 - 777 bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/lazy.go
func NewLazyRESTMapperLoader(fn func() (RESTMapper, error)) RESTMapper { obj := &lazyObject{loader: fn} return obj } // init lazily loads the mapper and typer, returning an error if initialization has failed. func (o *lazyObject) init() error { o.lock.Lock() defer o.lock.Unlock() if o.loaded { return o.err } o.mapper, o.err = o.loader() o.loaded = true return o.err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 05 23:44:02 UTC 2021 - 3.1K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/filter/impl/UrlFilterImplTest.java
urlFilter.addInclude(".*test.*"); assertEquals(1, urlFilter.cachedIncludeSet.size()); assertEquals(0, urlFilter.cachedExcludeSet.size()); final String sessionId = "id1"; urlFilter.init(sessionId); assertEquals(0, urlFilter.cachedIncludeSet.size()); assertEquals(0, urlFilter.cachedExcludeSet.size()); assertEquals(1, dataHelper.getIncludeUrlPatternList(sessionId).size());
Registered: Wed Jun 12 15:17:51 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 6.9K bytes - Viewed (0) -
platforms/enterprise/enterprise/src/integTest/groovy/org/gradle/internal/enterprise/DevelocityPluginConfigIntegrationTest.groovy
settings.pluginManager.apply("com.gradle.develocity") } } """ when: succeeds "t", "--scan", "--init-script", initScript.absolutePath then: plugin.assertAutoApplied(output, false) outputContains("Applying ${plugin.id} via init script")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 19:24:56 UTC 2024 - 7K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/utils/ThreadLocalDelegate.kt
internal class ThreadLocalValue<V : Any>(private val init: () -> V) { private val map = ConcurrentHashMap<Long, V>() @Suppress("NOTHING_TO_INLINE") inline operator fun getValue(thisRef: Any?, property: KProperty<*>): V = map.computeIfAbsent(Thread.currentThread().id) { init() } } internal fun <V : Any> threadLocal(init: () -> V): ThreadLocalValue<V> =
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed Sep 15 09:32:30 UTC 2021 - 766 bytes - Viewed (0) -
src/go/types/resolver.go
// have the appropriate number of names and init exprs. For const // decls, init is the value spec providing the init exprs; for // var decls, init is nil (the init exprs are in s in this case). func (check *Checker) arityMatch(s, init *ast.ValueSpec) { l := len(s.Names) r := len(s.Values) if init != nil { r = len(init.Values) } const code = WrongAssignCount switch { case init == nil && r == 0: // var decl w/o init expr
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 16:22:59 UTC 2024 - 26.1K bytes - Viewed (0) -
test/mainsig.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 17 04:43:46 UTC 2020 - 598 bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue48082.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 issue48082
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:25 UTC 2023 - 264 bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/plugins/precompiled/PrecompiledScriptPluginTemplatesTest.kt
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Oct 30 11:39:02 UTC 2023 - 20.1K bytes - Viewed (0) -
test/fixedbugs/issue29919.dir/a.go
} if !more { panic("traceback truncated after f") } f, more = iter.Next() if f.Function != "test/a.init" || !strings.HasSuffix(f.File, "a.go") || f.Line != 15 { panic(fmt.Sprintf("bad init %v\n", f)) } if !more { panic("traceback truncated after init") } f, _ = iter.Next() if !strings.HasPrefix(f.Function, "runtime.") { panic("runtime. driver missing") } return 0 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 17:50:47 UTC 2022 - 1.6K bytes - Viewed (0)