Skip to content

Commit

Permalink
Backed out: Fix NPE in generic inference.
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix von Ferey committed Mar 1, 2016
1 parent febb591 commit 2fbd9c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/org/mirah/jvm/mirrors/base_type.mirah
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ class AsyncMirror < BaseType
end

def interfaces:TypeFuture[]
@interfaces || super
@interfaces
end

def isFullyResolved():boolean
Expand Down
4 changes: 1 addition & 3 deletions src/org/mirah/jvm/mirrors/generics/xx_type_invoker.mirah
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import org.mirah.jvm.mirrors.MirrorType
import org.mirah.jvm.model.Cycle
import org.mirah.jvm.model.IntersectionType
import org.mirah.typer.TypeFuture
import org.mirah.typer.SimpleFuture
import org.mirah.util.Context

class IgnoredTypeBuilder < SignatureVisitor
Expand All @@ -56,8 +55,7 @@ class TypeInvoker < BaseSignatureReader
end

def saveTypeParam(var)
val = @args.isEmpty ? SimpleFuture.new(var) : @args.removeFirst
typeVariables[var.toString] = val
typeVariables[var.toString] = @args.removeFirst unless @args.isEmpty
@typeParams.add(var)
end

Expand Down

0 comments on commit 2fbd9c4

Please sign in to comment.