diff options
author | Jürg Billeter <j@bitron.ch> | 2009-09-14 20:29:41 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2009-09-14 20:32:26 +0200 |
commit | db1b554d4e85afcef86232e368d3381aee4cc96e (patch) | |
tree | 33d080ca1c130322a9b82a4f95692d07d7675c0e /vala/valasemanticanalyzer.vala | |
parent | bce013426fffe7baa80c2f2a7dbf2810285d54bb (diff) | |
download | vala-db1b554d4e85afcef86232e368d3381aee4cc96e.tar.gz |
Do not support use of generics in static methods of generic types
Fixes bug 589071.
Diffstat (limited to 'vala/valasemanticanalyzer.vala')
-rw-r--r-- | vala/valasemanticanalyzer.vala | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/vala/valasemanticanalyzer.vala b/vala/valasemanticanalyzer.vala index 032cc4b5b..ff54fbcd1 100644 --- a/vala/valasemanticanalyzer.vala +++ b/vala/valasemanticanalyzer.vala @@ -641,21 +641,6 @@ public class Vala.SemanticAnalyzer : CodeVisitor { if (param_index < instance_type.get_type_arguments ().size) { actual_type = (DataType) instance_type.get_type_arguments ().get (param_index); } - } else if (method_access != null && method_access.inner is MemberAccess) { - // static method in generic type - var type_symbol = (ObjectTypeSymbol) generic_type.type_parameter.parent_symbol; - - int param_index = type_symbol.get_type_parameter_index (generic_type.type_parameter.name); - if (param_index == -1) { - Report.error (node_reference.source_reference, "internal error: unknown type parameter %s".printf (generic_type.type_parameter.name)); - node_reference.error = true; - return null; - } - - var type_ma = (MemberAccess) method_access.inner; - if (param_index < type_ma.get_type_arguments ().size) { - actual_type = (DataType) type_ma.get_type_arguments ().get (param_index); - } } } else { // generic method |