/******************************************************************************
 * Copyright (c) 2000-2021 Ericsson Telecom AB
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
 *
 * Contributors:
 *   Balasko, Jeno
 *   Raduly, Csaba
 *
 ******************************************************************************/
module ae_wrong_type_SE {	//^In TTCN-3 module `ae_wrong_type_SE'://

type record R { //^In type definition//
  integer i //^In record field// \
            //^error: ANY-ELEMENT can only be applied to UTF8String or universal charstring type//
}
with {
  variant (i) "anyElement"
}

type record R2 {
  record of universal charstring ae
}
with {
  variant (ae)    "anyElement"; /* also accepted on record of universal charstring,
  although it can be assigned directly to the elments of it */
  //variant (ae[-]) "anyElement";
}

}
with {
encode "XML";
}
