Skip to content

Instantly share code, notes, and snippets.

c:\users\karpov\documents\visual studio 2013\Projects\Nemerle.Bugs\Nemerle.Bugs\Main.n(14,19): error : Internal compiler error, please report a bug to bugs.nemerle.org. You can try modifying program near this location.
C:\Program Files (x86)\Nemerle\Net-4.0\Nemerle.MSBuild.targets(289,5): error : internal compiler error: assertion ``False'' failed in file ncc\generation\Typer3.n, line 350: parms length mismatch, set_Foo [] [value : Foo]
в Nemerle.Compiler.Typer3.TupleParms(TFunHeader fh, list`1 parms, Int32 closure_parm_count)
в Nemerle.Compiler.Typer3._N_just_call_79477(_N_closureOf_EmitCall_79455 _N_EmitCall_cp_79476, IMethod meth, TExpr func, list`1 clo_parms)
в Nemerle.Compiler.Typer3.EmitCall(Location loc, TypeVar ret_type, TExpr func, list`1 parms, Boolean is_tail)
в Nemerle.Compiler.Typer3.DoWalk(TExpr expr)
в Nemerle.Compiler.Typedtree.TExpr.walk(Function`2 f, TExpr expr)
в Nemerle.Compiler.Typer3.Walk(TExpr expr)
в Nemerle.Compiler.Typer3.DoWalk(TExpr expr)
в Nemerle.C
def _N_initializedObject_5972 = entity();
_ =
{
def _N_initializedObject_5973 = _N_initializedObject_5972.Foo;
_ =
{
def _N_initializedObject_5974 = if (Object.ReferenceEquals(_N_initializedObject_5973.Baz, null)) Combinators.entity(); else _N_initializedObject_5973.Baz;
_N_initializedObject_5974.Age = 3;
_N_initializedObject_5974
};
using Nemerle;
using Nemerle.Collections;
using Nemerle.Text;
using Nemerle.Utility;
using System;
using System.Collections.Generic;
using System.Linq;
using NBox.Data;
using Nemerle.Collections;
using Nemerle.Text;
using Nemerle.Utility;
using System;
using System.Collections.Generic;
using System.Console;
using System.Linq;
module Program
@stdray
stdray / positions.n
Created January 21, 2015 13:36
map many
public MapPlanGraphPositions(src : ZakupkiV1.zfcs_tenderPlanType) : array[PlanGraphPositionType]
{
from pos in src.providedPurchases.positions
select entity() <-
{
Conditions <-
{
Advance = pos.purchaseConditions.advance;
ContractFinanceCondition <-
{
using Nemerle;
using System.CodeDom;
using System.CodeDom.Compiler;
public class Test
{
public static Main() : void
{
def type = CodeTypeDeclaration("Foo");
type.IsEnum = true;
using Nemerle;
using Nemerle.Collections;
using Nemerle.Text;
using Nemerle.Utility;
using System;
using System.Collections.Generic;
using System.Linq;
using NBox.Data;
using Interfax.Data.Etl.Dsl;
using Interfax.Data.Etl.Functions;
using Interfax.Data.Mappers.Common;
using Interfax.Data.Etl.Types;
using System;
using Spark.Marketing.Ru.XMLSchema.Plans;
using Spark.Marketing.Ru.XMLSchema.BankGuaranties;
using Spark.Marketing.Ru.XMLSchema.SharedCore;
using Spark.Marketing.Ru.XMLSchema.SharedSystem;
using ZakupkiV1 = Zakupki.Gov.Ru.Oos.Types.V1;
[Mapping]
public PlanGraphPosition(src : ZakupkiV1.zfcs_tenderPlanType, pos : ZakupkiV1.zfcs_tenderPlanPositionType) : PlanGraphPositionType
{
entity() <-
{
Conditions <-
{
Advance = pos.purchaseConditions.advance;
ContractFinanceCondition <-
{
public module ExternalDocumentProvider
{
public Get(groupType : string, content : XDocument) : Seq[ExternalGroupDocumentInfo]
{
def get(doc)
{
def fromPurchaseDocumentCommonType (x)
{
entity() <-
{