File: cell_x.go

package info (click to toggle)
golang-github-cheekybits-genny 1.0.0-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 336 kB
  • sloc: makefile: 17; sh: 3
file content (27 lines) | stat: -rw-r--r-- 534 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package bugreports

import "github.com/cheekybits/genny/generic"

// X is the type generic type used in tests
type X generic.Type

// CellX is result of generating code via genny for type X
type CellX struct {
	Value X
}

const constantX = 1

func funcX(p CellX) {}

// exampleX does some instantation and function calls for types inclueded in this file.
// Targets github issue 15
func exampleX() {
	aCellX := CellX{}
	anotherCellX := CellX{}
	if aCellX != anotherCellX {
		println(constantX)
		panic(constantX)
	}
	funcX(CellX{})
}