2015-11-19 17:11:09 -07:00
|
|
|
// errorcheck
|
|
|
|
|
2016-04-10 15:32:26 -06:00
|
|
|
// Copyright 2015 The Go Authors. All rights reserved.
|
2015-11-19 17:11:09 -07:00
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
func f(int, int) {
|
|
|
|
switch x {
|
|
|
|
case 1:
|
2022-03-30 14:23:37 -06:00
|
|
|
f(1, g() // ERROR "expecting \)|possibly missing comma or \)"
|
2015-11-19 17:11:09 -07:00
|
|
|
case 2:
|
|
|
|
f()
|
|
|
|
case 3:
|
2022-03-30 14:23:37 -06:00
|
|
|
f(1, g() // ERROR "expecting \)|possibly missing comma or \)"
|
2015-11-19 17:11:09 -07:00
|
|
|
}
|
|
|
|
}
|