开发者

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 = b开发者_JS百科ottomTeam;
        }
    }
}

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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜