Lasso Soft Inc. > Home

RhinoTrac

LassoSoft Ticket Tracking System

NOTE: If you are using Lasso Server 9.3 please Log your ticket directly via the LUX admin as this will give us more information about your issue.

Lasso 9 Issues



Ticket #7563: Return type constraints no longer functional?

Reported by:
Ke Carlton
Date:
21 Aug, 2013
Priority:
major
Component:
Lasso 9
Version:
9.2.6
Keywords:
Platform:
CentOS
It seems type constraints for return values are no longer functional.

Lasso 9.2.6 64-bit CentOS 5.9

// return type does not fail
define test_constraint::string => { return 1 }
test_constraint

// trait requirement
define test_traitconstraint => trait {
require example()::string
}

// this ignores trait requirement
define test_thing => type {
data public example::integer = 1

trait {import test_traitconstraint}

public method()::integer => 'string'
}

// also does not fail
test_thing->method
Please log in to your LassoSoft account to comment

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft