Home | History | Annotate | Download | only in fixedbugs
      1 // errorcheck
      2 
      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 
     10 package main
     11 
     12 import (
     13 	"io/ioutil"	// GCCGO_ERROR "imported and not used"
     14 	"net/http"
     15 	"os"		// GCCGO_ERROR "imported and not used"
     16 )
     17 
     18 func makeHandler(fn func(http.ResponseWriter, *http.Request, string)) http.HandlerFunc {
     19 	return func(w http.ResponseWriter, r *http.Request)  // ERROR "syntax error|invalid use of type"
     20 }
     21 
     22 type Page struct {
     23 	Title string
     24 	Body []byte
     25 }
     26 
     27