From c5993c2a586a41f640994ebd070f6d79cfed858f Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 17 Mar 2022 21:04:42 +0800 Subject: [PATCH] composer: improve class field typevar error message --- nac3core/src/toplevel/composer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nac3core/src/toplevel/composer.rs b/nac3core/src/toplevel/composer.rs index f5897a2e..83cd9cee 100644 --- a/nac3core/src/toplevel/composer.rs +++ b/nac3core/src/toplevel/composer.rs @@ -1282,7 +1282,7 @@ impl TopLevelComposer { if !class_type_vars_def.contains(&t) { return Err(format!( "class fields can only use type \ - vars declared as class generic type vars (at {})", + vars over which the class is generic (at {})", annotation.location )); }