]> Cypherpunks.ru repositories - gostls13.git/blobdiff - test/devirt.go
cmd/compile/internal/inline: score call sites exposed by inlines
[gostls13.git] / test / devirt.go
index e0149d8229247fccb35a1c40db8070f7b46c733e..d5c815222e448cb01b9620256db9e55f9cc09d0d 100644 (file)
@@ -31,9 +31,8 @@ func main() {
                panic("not 3")
        }
 
-       // Can't do types that aren't "direct" interfaces (yet).
        r = indirectiface{3, 4, 5}
-       if r.Value() != 12 {
+       if r.Value() != 12 { // ERROR "de-virtualizing call$"
                panic("not 12")
        }
 }