Skip to content

Commit e8c3420

Browse files
committed
Add testing case for InvalidTypeApplication
1 parent 8a20286 commit e8c3420

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class InvalidTypeApplicationClass < String[String]
2+
end
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module InvalidTypeApplicationModule : String[int]
2+
end

smoke/diagnostics-rbs/test_expectations.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,30 @@
7070
severity: ERROR
7171
message: Cannot find a non-overloading definition of `foo` in `::InvalidMethodOverload`
7272
code: RBS::InvalidMethodOverload
73+
- file: invalid-type-application-class.rbs
74+
diagnostics:
75+
- range:
76+
start:
77+
line: 1
78+
character: 36
79+
end:
80+
line: 1
81+
character: 50
82+
severity: ERROR
83+
message: Type `::String` is not generic but used as a generic type with 1 arguments
84+
code: RBS::InvalidTypeApplication
85+
- file: invalid-type-application-module.rbs
86+
diagnostics:
87+
- range:
88+
start:
89+
line: 1
90+
character: 38
91+
end:
92+
line: 1
93+
character: 49
94+
severity: ERROR
95+
message: Type `::String` is not generic but used as a generic type with 1 arguments
96+
code: RBS::InvalidTypeApplication
7397
- file: invalid-type-application.rbs
7498
diagnostics:
7599
- range:

0 commit comments

Comments
 (0)