blob: 7b6d14e7e63429957d5eb69c004eccdacc0aa28f [file] [log] [blame]
Rob Pike820f2232008-07-21 15:41:39 -07001// 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
7package main
8
9func main() {
Russ Cox34b277f2009-07-30 16:46:14 -070010 x := string{'a', 'b', '\n'}; // ERROR "composite"
Rob Pikebc2f5f12008-08-11 22:07:49 -070011 print(x);
Rob Pike820f2232008-07-21 15:41:39 -070012}