[1723] Internal error: Object reference not set to an instance of object

Code:

class Box<T> {
	
}

enum Result<T, U> {
	case Success(Box<T>)
	case Failure(Box<U>)
	
	func then<V>(nextOperation: T -> Result<V, U>) -> Result<V, U> {
		return .Success(Box<V>())
	}
}

This code causes the compiler to crash with “Internal error: Object reference not set to an instance of object”.

Joe,

thanx for the report! what platform is this on, and can you send us the full project?

thanx,
marc

OS X 10.9.5

ConsoleApplication12.zip (187.4 KB)

Thanks, logged as bugs://71555

bugs://71555 got closed with status fixed.