# check context of extend

resource a
	const int X = int(EOF)                  # predefined constant
end

resource b
	type oscar = enum(alpha, beta, gamma, delta, epsilon)
	const oscar EOF = delta
	extend a
body b()
	write(int(EOF), int(X))         # 3,3; was 3,-1 in v1
end
