Skip to content

Commit

Permalink
Improved printing for type variables to make fixing type errors easier.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcoblenz committed Jan 22, 2020
1 parent c21e62f commit 9aeb1e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ case class GenericVar(isAsset: Boolean, varName: String, permissionVar: Option[S

case class GenericType(gVar: GenericVar, bound: GenericBound) extends NonPrimitiveType {
override def toString: String =
s"$gVar${bound.show(gVar)}"
s"${gVar}@${permission}${bound.show(gVar)}"

def hasPermissionVar(stateName: String): Boolean = gVar.hasPermissionVar(stateName)

Expand Down

0 comments on commit 9aeb1e2

Please sign in to comment.