Sign in
go
/
website
/
06562a2885c91e4dae9e04d8bb9a796d02ee4527
/
.
/
_content
/
blog
/
constants
/
string2.go
blob: 362b4841d0a985b95a085e165ec2d86b2c5da857 [
file
] [
log
] [
blame
]
// +build OMIT
package main
import "fmt"
const typedHello string = "Hello, 世界"
func main() {
// START OMIT
type MyString string
var m MyString
m = typedHello
// Type error
fmt.Println(m)
// STOP OMIT
}