Rob Pike | 820f223 | 2008-07-21 15:41:39 -0700 | [diff] [blame] | 1 | // errchk $G $D/$F.go |
2 | |||||
3 | // Copyright 2009 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 | package main | ||||
8 | |||||
9 | func main() { | ||||
Russ Cox | 34b277f | 2009-07-30 16:46:14 -0700 | [diff] [blame] | 10 | x := string{'a', 'b', '\n'}; // ERROR "composite" |
Rob Pike | bc2f5f1 | 2008-08-11 22:07:49 -0700 | [diff] [blame] | 11 | print(x); |
Rob Pike | 820f223 | 2008-07-21 15:41:39 -0700 | [diff] [blame] | 12 | } |