Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 6,954 for umajin (0.08 sec)

  1. test/typeparam/issue51250a.dir/main.go

    // Copyright 2022 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 main
    
    import (
    	"./a"
    	"./b"
    )
    
    func main() {
    	switch b.I.(type) {
    	case a.G[b.T]:
    	case int:
    		panic("bad")
    	case float64:
    		panic("bad")
    	default:
    		panic("bad")
    	}
    
    	b.F(a.G[b.T]{})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 03 00:23:02 UTC 2022
    - 355 bytes
    - Viewed (0)
  2. test/typeparam/issue48462.dir/main.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 main
    
    import (
    	"fmt"
    	"reflect"
    
    	"./a"
    )
    
    func main() {
    	e := []int{1, 2, 2, 3, 1, 6}
    
    	got := a.Unique(e)
    	want := []int{1, 2, 3, 6}
    	if !reflect.DeepEqual(got, want) {
    		panic(fmt.Sprintf("got %d, want %d", got, want))
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 397 bytes
    - Viewed (0)
  3. test/fixedbugs/issue31959.dir/main.go

    // license that can be found in the LICENSE file.
    
    // Check import package contains type alias in function
    // with the same name with an export type not panic
    
    package main
    
    import (
    	"fmt"
    
    	"./a"
    )
    
    func main() {
    	fmt.Println(a.T{})
    	a.F()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 361 bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/testdata/issue32233/main/main.go

    // Copyright 2019 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 main
    
    import "cmd/link/internal/ld/testdata/issue32233/lib"
    
    func main() {
    	lib.DoC()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:12:55 UTC 2019
    - 256 bytes
    - Viewed (0)
  5. test/fixedbugs/issue15071.dir/main.go

    // run
    
    // Copyright 2016 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 main
    
    import "os"
    import "./exp"
    
    func main() {
    	_ = exp.Exported(len(os.Args))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 258 bytes
    - Viewed (0)
  6. test/typeparam/issue48337a.dir/main.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 main
    
    import "./a"
    
    func main() {
    	obj := a.NewWrapperWithLock("this file does import sync")
    	obj.PrintWithLock()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 284 bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/testdata/issue10978/main.go

    // license that can be found in the LICENSE file.
    
    package main
    
    func undefined()
    
    func defined1() int {
    	// To check multiple errors for a single symbol,
    	// reference undefined more than once.
    	undefined()
    	undefined()
    	return 0
    }
    
    func defined2() {
    	undefined()
    	undefined()
    }
    
    func init() {
    	_ = defined1()
    	defined2()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 05 16:49:07 UTC 2018
    - 478 bytes
    - Viewed (0)
  8. test/fixedbugs/issue40252.dir/main.go

    // Copyright 2020 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 main
    
    import "./a"
    
    func main() {
    	defer func() {
    		if recover() == nil {
    			panic("expected nil pointer dereference")
    		}
    	}()
    	a.Call()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 15 00:23:28 UTC 2020
    - 308 bytes
    - Viewed (0)
  9. test/fixedbugs/issue58563.dir/main.go

    // Copyright 2023 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 main
    
    import "test/a"
    
    func main() {
    	stop := start()
    	defer stop()
    }
    
    func start() func() {
    	return a.Start().Stop
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 01 20:26:10 UTC 2023
    - 286 bytes
    - Viewed (0)
  10. test/fixedbugs/bug191.dir/main.go

    // Copyright 2009 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 main
    
    import . "./a"
    import . "./b"
    
    var _ T
    var _ V
    
    func main() {
    	if A != 1 || B != 2 {
    		panic("wrong vars")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 10 20:05:37 UTC 2013
    - 286 bytes
    - Viewed (0)
Back to top