Sign in
go
/
website
/
e4c11970eed617e7d42ec594821d457db8d962cd
/
.
/
_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
}