[jira] Created: (BOO-1339) Generic constraint not correctly applied when type is declared on a field

Generic constraint not correctly applied when type is declared on a field 
--------------------------------------------------------------------------

                 Key: BOO-1339
                 URL: https://jira.codehaus.org/browse/BOO-1339
             Project: Boo
          Issue Type: Bug
          Components: Compiler
    Affects Versions: 0.9.4
         Environment: .NET 3.5 and 4.0, x64
            Reporter: Giovanni Bassi

When you declare a field's type explicitly, if it's type is a generic class with a constraint, then under
certain conditions the type will no longer have the generic constraint, only the generic constraint remains.

This will not compile as expected, class Repository will be defined as Repository[of T] instead of
Repository[of T(Entity)]:

class Other:
	rep as Repository of Entity = Repository of Entity()
class Repository[of T(Entity)]:
	pass
class Entity:
	pass

But if you leave the class Other at the bottom, it works as expected:

class Repository[of T(Entity)]:
	pass
class Entity:
(Continue reading)

[jira] Created: (BOO-1340) Invoking a closure on a method inside a generic type causes Bad IL and BadImageFormatException

Invoking a closure on a method inside a generic type causes Bad IL and BadImageFormatException
----------------------------------------------------------------------------------------------

                 Key: BOO-1340
                 URL: https://jira.codehaus.org/browse/BOO-1340
             Project: Boo
          Issue Type: Bug
          Components: Compiler
    Affects Versions: 0.9.4
         Environment: .net 3.5 and 4.0
            Reporter: Giovanni Bassi
            Priority: Minor

Attempting to call a regular method which references a generic parameter from it's type fails if you try to
pass a closure referencing the generic type.

{code:title=fails.boo|borderStyle=solid}
class Entity: 
	public Prop as string

class Repository[of T(Entity)]:
	def Get(p):
		Where({ p | p.Prop == p})
	def Where(predicate as System.Func[of T, bool]):
		pass
{code}

If you use a closure on an object where the generic parameter is already defined, it doesn't fail. This will pass:

{code:title=works.boo|borderStyle=solid}
(Continue reading)

[jira] Resolved: (BOO-1181) Atttributes with exploding parameters cause internal compiler error


     [
https://jira.codehaus.org/browse/BOO-1181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rodrigo B. de Oliveira resolved BOO-1181.
-----------------------------------------

       Resolution: Fixed
    Fix Version/s: 0.9.5
         Assignee: Rodrigo B. de Oliveira

Fixed in https://github.com/bamboo/boo/commit/ecb9c9f142268bdbc3925f86e8bfff3326fd4375

> Atttributes with exploding parameters cause internal compiler error
> -------------------------------------------------------------------
>
>                 Key: BOO-1181
>                 URL: https://jira.codehaus.org/browse/BOO-1181
>             Project: Boo
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: 0.9.1
>         Environment: Windows, SharpDevelop, Command line
>            Reporter: Gabe McArthur
>            Assignee: Rodrigo B. de Oliveira
>            Priority: Minor
>             Fix For: 0.9.5
>
>
> Using several popular open source unit testing frameworks, it is possible to attach [Row(params...)]
(Continue reading)


Gmane