Case is important! Is it List (with capital L) not list (which in your scope is a variable).
Usually classes are named with capital first letter (e.g. Integer, List, Vector). You can see that your "list" is not even coloured, while the "List" in line 11 is purple. This is one indication that the class was found.
↧