Skip to content

Commit

Permalink
sema: fix generic type-alias analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Apr 25, 2024
1 parent ebd60e6 commit 7dd6676
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions std/jule/sema/type.jule
Original file line number Diff line number Diff line change
Expand Up @@ -1053,6 +1053,10 @@ impl TypeChecker {

for (_, mut g) in self.use_generics {
if g.ident == decl.ident {
if decl.generics.len > 0 {
self.push_err(decl.token, LogMsg.TypeNotSupportsGenerics, decl.ident)
ret nil
}
let mut st = g.kind.kind.strct()
if st != nil {
let ok = self.check_illegal_cycles(decl, st.decl)
Expand Down

0 comments on commit 7dd6676

Please sign in to comment.