Skip to content

Commit

Permalink
Compiler: remove useless property
Browse files Browse the repository at this point in the history
MetaclassType#metaclass has already implement that.
  • Loading branch information
rockwyc992 committed May 13, 2017
1 parent 61e0042 commit 34415f9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/compiler/crystal/program.cr
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ module Crystal
string.declare_instance_var("@c", uint8)

types["Class"] = klass = @class = MetaclassType.new(self, object, value, "Class")
klass.metaclass = klass
klass.allowed_in_generics = false

types["Struct"] = struct_t = @struct_t = NonGenericClassType.new self, self, "Struct", value
Expand Down

0 comments on commit 34415f9

Please sign in to comment.