-add test for newly introduced cast operators (issue 1818)

-fix formatting
-remove CompilerTest test since it seems to fail randomly
This commit is contained in:
Mike Mazur
2008-07-25 04:47:11 +00:00
parent ac9a221993
commit e60cf0e67d
4 changed files with 22 additions and 5 deletions

View File

@@ -1189,6 +1189,7 @@ namespace OpenSim.Region.ScriptEngine.Common
{
return new Vector3(s.m_string);
}
public static implicit operator LSLFloat(LSLString s)
{
return new LSLFloat(Convert.ToDouble(s.m_string));

View File

@@ -1199,10 +1199,11 @@ namespace OpenSim.Region.ScriptEngine.Shared
{
return new Vector3(s.m_string);
}
public static implicit operator LSLFloat(LSLString s)
{
return new LSLFloat(Convert.ToDouble(s.m_string));
}
public static implicit operator LSLFloat(LSLString s)
{
return new LSLFloat(Convert.ToDouble(s.m_string));
}
#endregion