mirror of
https://github.com/golang/go
synced 2025-06-01 15:51:02 +00:00
delete float, complex - code changes
also: cmplx -> complex float64(1.0) -> 1.0 float64(1) -> 1.0 R=gri, r, gri1, r2 CC=golang-dev https://golang.org/cl/3991043
This commit is contained in:
src/pkg
cmath
container
vector
encoding
binary
exp
datafmt
eval
ogle
expvar
flag
fmt
go
gob
json
math
rand
reflect
runtime
sort
strconv
testing
xml
test
append.goblank.gocmplx.gocmplxdivide.ccmplxdivide1.gocomplit.goconst1.goconvlit.godecl.godeclbad.go
fixedbugs
bug006.gobug007.gobug010.gobug011.gobug035.gobug047.gobug080.gobug109.gobug167.gobug193.gobug220.gobug230.gobug238.go
func.gofunc1.gogolden.outbug248.dir
bug299.gobug307.gobug315.gobug316.gointerface
iota.goken
literal.gomap.gonamed.gonil.gorecover2.gotest0.gotypeswitch.gozerodivide.go@ -51,21 +51,25 @@ func main() {
|
||||
t = T(e) // ERROR "need explicit|need type assertion|incompatible"
|
||||
}
|
||||
|
||||
type M interface { M() }
|
||||
type M interface {
|
||||
M()
|
||||
}
|
||||
|
||||
var m M
|
||||
|
||||
var _ = m.(int) // ERROR "impossible type assertion"
|
||||
var _ = m.(int) // ERROR "impossible type assertion"
|
||||
|
||||
type Int int
|
||||
func (Int) M(float) {}
|
||||
|
||||
var _ = m.(Int) // ERROR "impossible type assertion"
|
||||
func (Int) M(float64) {}
|
||||
|
||||
var _ = m.(Int) // ERROR "impossible type assertion"
|
||||
|
||||
var ii int
|
||||
var jj Int
|
||||
|
||||
var m1 M = ii // ERROR "incompatible|missing"
|
||||
var m2 M = jj // ERROR "incompatible|wrong type for M method"
|
||||
var m1 M = ii // ERROR "incompatible|missing"
|
||||
var m2 M = jj // ERROR "incompatible|wrong type for M method"
|
||||
|
||||
var m3 = M(ii) // ERROR "invalid|missing"
|
||||
var m4 = M(jj) // ERROR "invalid|wrong type for M method"
|
||||
var m3 = M(ii) // ERROR "invalid|missing"
|
||||
var m4 = M(jj) // ERROR "invalid|wrong type for M method"
|
||||
|
Reference in New Issue
Block a user