We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f94d882 commit 56ba46aCopy full SHA for 56ba46a
crates/emmylua_code_analysis/src/diagnostic/checker/cast_type_mismatch.rs
@@ -180,7 +180,10 @@ fn cast_type_check(
180
}
181
_ => {
182
if origin_type.is_table() {
183
- if target_type.is_table() || target_type.is_custom_type() {
+ if target_type.is_table()
184
+ || target_type.is_custom_type()
185
+ || target_type.is_generic()
186
+ {
187
return Ok(());
188
189
} else if origin_type.is_custom_type() {
0 commit comments