Malfist
Malfist

Reputation: 31815

Type was not found or was not a compile-time constant

I keep getting the error: "Type was not found or was not a compile-time constant: Team" on my constructor for this class:

package ncaa.Data
{       
    import ncaa.Data.Team;

    public class PositionedTeams{

        public var Position:int;
        public var TopTeam:Team;
        public var BottomTeam:Team;

        public function Team(pos:int, topTeam:Team, bottomTeam:Team){
            Position = pos;
            TopTeam = topTeam;
            BottomTeam = bottomTeam;
        }
    }
}

The class, Team is imported on the third line, what's going on?

Upvotes: 1

Views: 591

Answers (1)

Daniel A. White
Daniel A. White

Reputation: 191058

It might be a name conflict. The constructor you have is Team not PositionedTeams.

Upvotes: 2

Related Questions