我一直收到错误:“找不到类型或者不是编译时常量:Team”在我的构造函数上:
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;
}
}
}
班级,团队是在第三行导入的,发生了什么?
答案 0 :(得分:2)
这可能是名称冲突。您拥有的构造函数是Team
而不是PositionedTeams
。