- Sort Score
- Result 10 results
- Languages All
Results 31 - 32 of 32 for Pad1 (0.03 sec)
-
test/fixedbugs/issue9006.go
package main type T1 struct { X int } func NewT1(x int) T1 { return T1{x} } type T2 int func NewT2(x int) T2 { return T2(x) } func main() { switch (T1{}) { case NewT1(1): panic("bad1") case NewT1(0): // ok default: panic("bad2") } switch T2(0) { case NewT2(2): panic("bad3") case NewT2(0): // ok default: panic("bad4") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 520 bytes - Viewed (0) -
test/convlit.go
var _ = float64(unsafe.Pointer(uintptr(65))) // ERROR "convert|conversion" var _ = int(unsafe.Pointer(uintptr(65))) // ERROR "convert|conversion" // implicit conversions merit scrutiny var s string var bad1 string = 1 // ERROR "conver|incompatible|invalid|cannot" var bad2 = s + 1 // ERROR "conver|incompatible|invalid|cannot" var bad3 = s + 'a' // ERROR "conver|incompatible|invalid|cannot"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 23 05:11:09 UTC 2021 - 2.4K bytes - Viewed (0)