blob: 063c2e0bf8d916f5866803a49414074cbc90a35b [file] [log] [blame]
Russ Cox80803842012-02-16 23:49:59 -05001// errorcheck
Russ Cox2f8190a2011-07-28 12:31:16 -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 1979
8// used to get internal compiler error too
9
10package main
11
12import (
Ian Lance Taylor1f275192011-09-20 16:47:17 -070013 "io/ioutil" // GCCGO_ERROR "imported and not used"
Rob Pike6ab6c492011-11-08 15:38:47 -080014 "net/http"
Ian Lance Taylor7dc11822012-10-30 20:56:32 -070015 "os" // GCCGO_ERROR "imported and not used"
Russ Cox2f8190a2011-07-28 12:31:16 -040016)
17
18func makeHandler(fn func(http.ResponseWriter, *http.Request, string)) http.HandlerFunc {
Ian Lance Taylor1f275192011-09-20 16:47:17 -070019 return func(w http.ResponseWriter, r *http.Request) // ERROR "syntax error|invalid use of type"
Russ Cox2f8190a2011-07-28 12:31:16 -040020}
21
22type Page struct {
23 Title string
24 Body []byte
25}
26