]> Cypherpunks.ru repositories - gostls13.git/blobdiff - test/convert.go
cmd/compile/internal/inline: score call sites exposed by inlines
[gostls13.git] / test / convert.go
index e7361aa87f8f1e0f6e97d04dc277a098009afc6d..7280edf333cdc841b3d762d68a5684b66f6a0c3d 100644 (file)
@@ -1,14 +1,16 @@
-// $G $D/$F.go && $L $F.$A && ./$A.out
+// run
 
 // 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.
 
+// Test types of constant expressions, using reflect.
+
 package main
 
 import "reflect"
 
-func typeof(x interface{}) string { return reflect.Typeof(x).String() }
+func typeof(x interface{}) string { return reflect.TypeOf(x).String() }
 
 func f() int { return 0 }