`NullReferenceException` due to generic function returned from property

IDE: Visual Studio X/Fire
Version: 10.0.0.2465 (develop)
Target (If relevant): Island(OSX)
Description:
Returning a generic function as a non-generic function can cause a NullReferenceException in the compiler.

Expected Behavior:
Compiles.
Actual Behavior:

E0 Internal error: (expand for backtrace)
System.NullReferenceException: Object reference not set to an instance of an object
    at RemObjects.Oxygene.Code.CallExpressionTransform.ResolveExpression (RemObjects.Oxygene.Code.Compiler.ScopeInfo aScope, RemObjects.Oxygene.Code.CallExpression incall, RemObjects.Oxygene.Code.CallMode aCM) [0x01cbb] in <15bcd5441c2f4de4a8e124ecf5bf98ec>:0 
    at RemObjects.Oxygene.Code.Compiler.NewResolveExpressionAndStatement.VisitExpression (RemObjects.Oxygene.Code.Compiler.ScopeInfo aScope, RemObjects.Oxygene.Code.Expression element) [0x006f7] in <15bcd5441c2f4de4a8e124ecf5bf98ec>:0 
    at RemObjects.Oxygene.Code.AnonymousMethodExpressionTransform.ResolveAnonymousMethod (RemObjects.Oxygene.Code.Compiler.ScopeInfo aScope, RemObjects.Oxygene.Code.AnonymousMethodExpression anonymousMethodExpression, RemObjects.Oxygene.Code.BaseType aFixedDelegate, System.Collections.Generic.IList`1[T] aUnresolvedMethodArguments, System.Boolean aSkipReset, System.Boolean aNoEscape) [0x00c3e] in <15bcd5441c2f4de4a8e124ecf5bf98ec>:0 
    at RemObjects.Oxygene.Code.AnonymousMethodExpressionTransform.SelectAnonymousMethod (RemObjects.Oxygene.Code.Compiler.ScopeInfo aScope, RemObjects.Oxygene.Code.AnonymousMethodExpression anonymousMethodExpression, RemObjects.Oxygene.Code.BaseType aFixedDelegate, System.Collections.Generic.IList`1[T] aUnresolvedMethodArguments, System.Boolean aSkipReset, System.Boolean aNoEscape) [0x00020] in <15bcd5441c2f4de4a8e124ecf5bf98ec>:0 
    at RemObjects.Oxygene.Code.Compiler.Compiler.CheckAndMakeCompatible (RemObjects.Oxygene.Code.Compiler.ScopeInfo aScope, RemObjects.Oxygene.Code.Expression value, RemObjects.Oxygene.Code.BaseType inputType, RemObjects.Oxygene.Code.BaseType targetType, System.Boolean aUnwrapNullable) [0x02177] in <15bcd5441c2f4de4a8e124ecf5bf98ec>:0 
    at RemObjects.Oxygene.Code.IslandTarget.ValidateDelegate (RemObjects.Oxygene.Code.Compiler.Compiler compiler, RemObjects.Oxygene.Code.Compiler.ScopeInfo aScope, RemObjects.Oxygene.Code.ResolvedNewExpression aNew, RemObjects.Oxygene.Code.Expression aSelf, RemObjects.Oxygene.Code.ResolvedProcPtrExpression aDel) [0x0021e] in :0 
    at RemObjects.Oxygene.Code.NewExpressionTransform.ResolveNewDelegateExpression (RemObjects.Oxygene.Code.Compiler.ScopeInfo aScope, RemObjects.Oxygene.Code.NewExpression newExpression) [0x00920] in <15bcd5441c2f4de4a8e124ecf5bf98ec>:0 
    at RemObjects.Oxygene.Code.NewExpressionTransform.ResolveExpression (RemObjects.Oxygene.Code.Compiler.ScopeInfo aScope, RemObjects.Oxygene.Code.NewExpression newExpression, System.Boolean aTry, System.Boolean aRecurse) [0x01366] in <15bcd5441c2f4de4a8e124ecf5bf98ec>:0 
    at RemObjects.Oxygene.Code.Compiler.Compiler.CheckAndMakeCompatible (RemObjects.Oxygene.Code.Compiler.ScopeInfo aScope, RemObjects.Oxygene.Code.Expression value, RemObjects.Oxygene.Code.BaseType inputType, RemObjects.Oxygene.Code.BaseType targetType, System.Boolean aUnwrapNullable) [0x01626] in <15bcd5441c2f4de4a8e124ecf5bf98ec>:0 
    at RemObjects.Oxygene.Code.ExitStatementTransform.ResolveStatement (RemObjects.Oxygene.Code.Compiler.ScopeInfo aScope, RemObjects.Oxygene.Code.ExitStatement exitStatement) [0x00d21] in <15bcd5441c2f4de4a8e124ecf5bf98ec>:0 
    at RemObjects.Oxygene.Code.Compiler.NewResolveExpressionAndStatement.VisitStatement (RemObjects.Oxygene.Code.Compiler.ScopeInfo aScope, RemObjects.Oxygene.Code.Statement element) [0x003da] in <15bcd5441c2f4de4a8e124ecf5bf98ec>:0 
    at RemObjects.Oxygene.Code.BeginStatementTransform.ResolveStatement (RemObjects.Oxygene.Code.Compiler.ScopeInfo aScope, RemObjects.Oxygene.Code.BeginStatement beginStatement) [0x00222] in <15bcd5441c2f4de4a8e124ecf5bf98ec>:0 
    at RemObjects.Oxygene.Code.Compiler.NewResolveExpressionAndStatement.VisitStatement (RemObjects.Oxygene.Code.Compiler.ScopeInfo aScope, RemObjects.Oxygene.Code.Statement element) [0x00443] in <15bcd5441c2f4de4a8e124ecf5bf98ec>:0 
    at RemObjects.Oxygene.Code.Compiler.Compiler.ResolveMethodBody (RemObjects.Oxygene.Code.Compiler.ScopeInfo aScope, RemObjects.Oxygene.Code.IMethodImplementation aMethod) [0x01b89] in <15bcd5441c2f4de4a8e124ecf5bf98ec>:0 
    at RemObjects.Oxygene.Code.Compiler.Compiler.ResolveProperty (RemObjects.Oxygene.Code.Compiler.ScopeInfo lScope, RemObjects.Oxygene.Code.IMutablePropertyImplementation aProp) [0x00a71] in <15bcd5441c2f4de4a8e124ecf5bf98ec>:0 
    at RemObjects.Oxygene.Code.Compiler.Compiler+<>c__DisplayClass51.b__5 (RemObjects.Oxygene.Code.IParsedType aType) [0x00150] in <15bcd5441c2f4de4a8e124ecf5bf98ec>:0 
    at RemObjects.Oxygene.Code.Compiler.Compiler.ForAllInternalTypes (System.Action`1[T] aAt) [0x0007e] in <15bcd5441c2f4de4a8e124ecf5bf98ec>:0 
    at RemObjects.Oxygene.Code.Compiler.Compiler.ResolveMembers () [0x001f5] in <15bcd5441c2f4de4a8e124ecf5bf98ec>:0 

Steps:

func id<T>(_ t: T) -> T { return t }

var x: (Int) -> Int {
    get { return id } // E0 Internal error: System.NullReferenceException: Object reference not set to an instance of an object
    set { }
}

Thanks, logged as bugs://83693

bugs://83693 got closed with status fixed.