blob: bb690f0e5b6e90790ab052c8bf36de1949f0e03e [file] [log] [blame]
Russ Cox80803842012-02-16 23:49:59 -05001// run
Russ Coxc0a895f2011-04-23 10:55:32 -04002
3// Copyright 2011 The Go Authors. All rights reserved.
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6
7// Issue 1709
8
9package main
10
11func main() {
12 type Ts string
13 var ts Ts
14 _ = []byte(ts)
15}
16
17/*
18bug333.go:14: cannot use ts (type Ts) as type string in function argument
19*/