Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for typeswitches (0.17 sec)

  1. src/internal/types/testdata/check/stmt0.go

    		var _ I = t
    	}
    }
    
    // Test correct typeswitch against interface types.
    type A interface { a() }
    type B interface { b() }
    type C interface { a(int) }
    
    func typeswitch2() {
    	switch A(nil).(type) {
    	case A:
    	case B:
    	case C /* STRICT "cannot have dynamic type" */: // only an error in strict mode (issue 8561)
    	}
    }
    
    func typeswitch3(x interface{}) {
    	switch x.(type) {
    	case int:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. test/typeswitch2b.go

    Robert Griesemer <******@****.***> 1663795534 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 21:10:19 UTC 2022
    - 598 bytes
    - Viewed (0)
  3. test/typeparam/typeswitch1.go

    Matthew Dempsky <******@****.***> 1646648855 -0800
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 07 13:47:58 UTC 2022
    - 648 bytes
    - Viewed (0)
  4. test/typeparam/typeswitch5.go

    Matthew Dempsky <******@****.***> 1646087539 -0800
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 559 bytes
    - Viewed (0)
  5. test/typeparam/typeswitch6.go

    Matthew Dempsky <******@****.***> 1646087539 -0800
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 495 bytes
    - Viewed (0)
  6. test/typeparam/typeswitch7.go

    Matthew Dempsky <******@****.***> 1646087539 -0800
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 581 bytes
    - Viewed (0)
  7. test/typeswitch2.go

    Matthew Dempsky <******@****.***> 1568171211 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 11 23:33:11 UTC 2019
    - 655 bytes
    - Viewed (0)
  8. test/typeparam/typeswitch1.out

    Matthew Dempsky <******@****.***> 1646648855 -0800
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 07 13:47:58 UTC 2022
    - 56 bytes
    - Viewed (0)
  9. test/typeparam/typeswitch3.go

    Matthew Dempsky <******@****.***> 1646648855 -0800
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 07 13:47:58 UTC 2022
    - 837 bytes
    - Viewed (0)
  10. test/typeparam/typeswitch5.out

    Keith Randall <******@****.***> 1628003417 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 09 18:41:45 UTC 2021
    - 41 bytes
    - Viewed (0)
Back to top