Skip to content

Commit d7d7741

Browse files
committed
sema: minor improvement for reserved Str method handling
1 parent d61d20d commit d7d7741

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/jule/sema/pattern.jule

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl FuncPattern {
4545
len(f.Generics) != 0 ||
4646
len(f.Params) != 1 ||
4747
f.Params[0].Mutable ||
48-
f.Params[0].IsSmartptr() {
48+
!f.Params[0].IsRefptr() {
4949
ret false
5050
}
5151

0 commit comments

Comments
 (0)