Unity lists not working while using collection generic

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class lists : MonoBehaviour { 
	public List<int> cps = new List<int>();
		
	public void Start()
	{
	}
	public void Update()
	{
		if (Input.GetKeyDown (KeyCode.Space)) {
			cps.Add (Random.Range (1, 100));
		}
	}
}

I have included System.Collections; and System.Collections.Generic; yet It says there is no name “List” in the context

thats weird. i copied your code and its working by me . which version of unity are you using?

just try

public List<int> cps;

Having the exact same issue here.
Apparently, Unity engine for version 2017 b1.1 does not include a List implementation for their System.Collection.Generics. Oddly enough as far as I can search there should be an existing class library List which handles List creations. But can only find Linked List.

I have been working on Unity built for Linux Debian stable version of 2017 1.1xf for the past few days as well, no luck.

If unity has forgotten to update these libraries that’s just a downer :'D.

I am including a screenshot of my code here:
102735-screenshot-from-2017-09-28-00-32-20.png

My LIST and array keywords like Count and Length were suddenly all showing up red. I closed and restarted MonoDevelop and that fixed the issue.